﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;
using Volo.Abp;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 诊断类别字典
    /// </summary>
    [Table("DIAG_TYPE_DICT")]
    public class DiagTypeDict : Entity<Guid>, IMultiTenant, ISoftDelete
    {
        /// <summary>
        /// 诊断类别代码
        /// </summary>
        [Column("DIAG_TYPE_CODE")]
        public string DiagTypeCode { get; set; }

        /// <summary>
        /// 诊断类别名称
        /// </summary>
        [Column("DIAG_TYPE_NAME")]
        public string DiagTypeName { get; set; }

        /// <summary>
        /// 数据字典代码
        /// </summary>
        [Column("DATA_DICT_CODE")]
        public string DataDictCode { get; set; }

        /// <summary>
        /// 数据字典名称
        /// </summary>
        [Column("DATA_DICT_NAME")]
        public string DataDictName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="diagTypeCode"></param>
        /// <param name="diagTypeName"></param>
        /// <param name="dataDictCode"></param>
        /// <param name="dataDictName"></param>
        public DiagTypeDict(string diagTypeCode, string diagTypeName
            , string dataDictCode, string dataDictName)
        {
            DiagTypeCode = diagTypeCode;
            DiagTypeName = diagTypeName;
            DataDictCode = dataDictCode;
            DataDictName = dataDictName;
        }
    }
}
